﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="left.aspx.cs" Inherits="left" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="HEAD1" runat="server">
    <link rel="stylesheet" href="App_Themes/Default/menu.css" type="text/css" />
    <style type="text/css">
        #left
        {
            width: 100%;
        }
    </style>
</head>
<body class="navBody" onclick="if(typeof(event.srcElement)=='object' ){if(event.srcElement.name!='tTitle1' &amp;&amp; event.srcElement.name!='tTitle2')hidePOP();}else{hidePOP();}">
    <table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0">
        <tr>
            <td style="width: 766px">
                <table height="100%" cellspacing="0" cellpadding="0" border="0" id="left">
                    <tr>
                        <td style="width: 766px">
                            <table id="tableNavArea" height="100%" cellspacing="0" cellpadding="0" width="100%"
                                border="0" name="tableNavArea">
                                <tr>
                                    <td style="height: 25px" valign="bottom" height="25">
                                        <table height="25" cellspacing="0" cellpadding="0" width="95%" align="center" border="0">
                                            <tr>
                                                <td>
                                                    <asp:Literal ID="litMenuTitle" runat="server"></asp:Literal>
                                                </td>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top" width="100%">
                            <asp:Literal ID="litMenus" runat="server"></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 25px" valign="bottom" background="images/Menus/bg_nav_main.gif"
                            height="25">
                            <table cellspacing="1" cellpadding="0" width="95%" align="center" border="0">
                                <tr>
                                    <td align="center" width="33%">
                                        <table class="navTool" cellspacing="1" cellpadding="0" border="0">
                                            <tr>
                                                <td onclick="setNavMenu();">
                                                    <a id="title1" href="#" name="title1">最小化 </a>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td align="center" width="33%">
                                        <table class="navTool" id="" cellspacing="1" cellpadding="0" border="0" name="">
                                            <tr>
                                                <td onclick="window.parent.MainFrame.location='#';" name="tTitle3">
                                                    <a href="#" name="tTitle4">地址薄</a>
                                                </td>
                                                <!--popMenu();-->
                                            </tr>
                                        </table>
                                    </td>
                                    <td align="center" width="34%">
                                        <table class="navTool" id="" cellspacing="1" cellpadding="0" border="0" name="">
                                            <tr>
                                                <td onclick="window.showModalDialog('#',window,'dialogWidth=400px; dialogHeight=310px;status=no; help=no;scroll=auto;resizable=no');"
                                                    name="tTitle1">
                                                    <a href="#" name="tTitle2">发消息</a>
                                                </td>
                                                <!--popMenu();-->
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
            <td style="cursor: hand;" onclick="swapNav()" align="right" width="9" background="images/Menus/bg_middle_main.gif">
                <div align="right">
                    <img height="103" src="images/Menus/bg_middle_button.gif" /></div>
            </td>
        </tr>
    </table>
    <div onmouseout="hidePOP()">
        <iframe id="framePOP" style="border-right: #597db5 1px outset; border-top: #597db5 1px outset;
            display: none; left: 0px; border-left: #597db5 1px outset; width: 90px; border-bottom: #597db5 1px outset;
            position: absolute; top: 25px; height: 100px" name="framePOP" marginwidth="0"
            marginheight="0" frameborder="0"></iframe>
    </div>

    <script language="javascript">

        var m_CurrentIndex = 1;

        function hidePOP() {
            document.all.framePOP.style.display = "none";
        }
        function Do_PersonalInfo() {
            top.MainFrame.location.href = "./System/Default.aspx?model=PersonalInfo&UserID=1";
        }
        function Do_Password() {
            top.MainFrame.location.href = "./ModiPassword.aspx?model=SetPWD";  //&UserID=1
        }
        function Do_exit() { top.location.href = './login.aspx?model=Logout'; }
        function Do_help1() { window.open('./SystemHelp/KinJiSys_Help.htm', '', 'height=600,width=800,resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=no'); }
        function Do_newWin() { window.open('./Default.aspx', '', 'height=600,width=800,resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=no'); }

        function popMenu() {
            hideMenu = false;
            showPopMenu();
            return false;
        }
    </script>

    <script language="javascript">
        function setNavMenu() {
            if (document.all.navMenuIndex.style.display == 'none') {
                //var e = document.getElementsById()
                for (var i = 1; i <= 20; i++) {
                    if (typeof (eval("document.all.navMenu" + i)) == "object") {
                        eval("document.all.navMenu" + i).style.display = 'none';
                    }
                }
                document.all.title1.innerHTML = "菜 单";
                if (typeof (eval("document.all.navMenuIndex")) == "object") {
                    eval("document.all.navMenuIndex").style.display = '';
                }

            }
            else {
                for (var i = 1; i <= 20; i++) {
                    if (typeof (eval("document.all.navMenu" + i)) == "object") {
                        eval("document.all.navMenu" + i).style.display = '';
                    }
                }
                if (typeof (eval("document.all.navMenuIndex")) == "object") {
                    eval("document.all.navMenuIndex").style.display = 'none';
                }
                document.all.title1.innerHTML = "最小化";
            }
        }

        function setNavMenuBG(index) {
            var obj;
            m_CurrentIndex = index;
            for (i = 1; i <= 10; i++) {
                obj = eval("document.all.navMenu" + i);
                if (typeof (obj) == "object") {
                    if (i == index && obj.className != "navColumnLight") {
                        obj.className = "navColumnLight";
                    }
                    else if (i != index && obj.className != "navColumnDark") {
                        obj.className = "navColumnDark";
                    }
                }
            }
        }

        function setNavMenuBGOut(index) {
            var obj;


            obj = eval("document.all.navMenu" + index);
            if (typeof (obj) == "object") {

                if (index != m_CurrentIndex && obj.className == "navColumnMouseOver") {
                    obj.className = "navColumnDark";
                }


            }

        }

        function setNavMenuBGMove(index) {
            var obj;
            if (index != m_CurrentIndex) {
                for (i = 1; i <= 10; i++) {
                    obj = eval("document.all.navMenu" + i);
                    if (typeof (obj) == "object") {

                        if (i == index && obj.className != "navColumnMouseOver") {
                            obj.className = "navColumnMouseOver";
                        }
                        else if (i != index && i != m_CurrentIndex && obj.className != "navColumnDark") {
                            //alert(m_CurrentIndex);
                            obj.className = "navColumnDark";
                        }
                    }

                }
            }
        }

        function swapNav() {
            if (typeof (top.document.all.frameMain) == "object") {
                if (top.document.all.frameMain.cols != "9,*") {
                    document.all.tableNavArea.style.display = "none";
                    top.document.all.frameMain.cols = "9,*";
                }
                else {
                    document.all.tableNavArea.style.display = "";
                    top.document.all.frameMain.cols = "215,*";
                }
            }
        }
        function refresh() {
            //frameNavRefresh.location.href = 'Refresh.aspx';
            //setTimeout("refresh();", 30000);
        }
        refresh();
        //setInterval("refresh();", 30000);
    </script>

</body>
</html>
